import pytest
from selenium import webdriver
from src5.Page.Page import Page
from selenium.webdriver.common.by import By

@pytest.fixture()
def driver():
    driver = webdriver.Firefox()
    yield driver
    driver.close()
def test_01(driver):
    po = Page(driver)
    # a='/html/body/div[3]/div[4]/div[1]/div[3]'
    # for i in driver.find_elements(By.XPATH,a):
    #     print(i.text)
    #     assert i.text,'我喜欢软件测试'
    po.test_baidu_01()
